package edu.kjxy.day01.useReturnInterrupt;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/1/31 21:12
 */
public class MyThread extends Thread{
    @Override
    public void run() {
        while (true){
            if (this.isInterrupted()){
                System.out.println("停止了！");
                return;
            }
            System.out.println("timer=" + System.currentTimeMillis());
        }
    }
}
